# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : base_page.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2023/11/12 9:55
# @Copyright: 北京码同学
from common.driver import DriverOperate
from common.file_load import load_yaml_file
from paths_manager import buyer_yaml, seller_yaml


class BasePage:

    def __init__(self):
        self.operate:DriverOperate = DriverOperate.globalDriverOperate
        # self.page_eles = load_yaml_file(buyer_yaml)[self.__class__.__name__]


class BuyerBasePage(BasePage):
    def __init__(self):
        super().__init__()
        self.page_eles = load_yaml_file(buyer_yaml)[self.__class__.__name__]

class SellerBasePage(BasePage):
    def __init__(self):
        super().__init__()
        self.page_eles = load_yaml_file(seller_yaml)[self.__class__.__name__]